翻訳と辞書
Words near each other
・ Anonymous Bulgarian Chronicle
・ Anonymous call rejection
・ Anonymous Christian
・ Anonymous elector
・ Anonymous for Animal Rights
・ Anonymous function
・ Anonymous Internet banking
・ Anonymous IV
・ Anonymous matching
・ Anonymous Online Speakers v. United States District Court for the District of Nevada
・ Anonymous P2P
・ Anonymous peer review
・ Anonymous pipe
・ Anonymous post
・ Anonymous Raw General Manager
Anonymous recursion
・ Anonymous remailer
・ Anonymous Rex
・ Anonymous Rex (film)
・ Anonymous Rex (novel)
・ Anonymous sex
・ Anonymous social media
・ Anonymous Tombs in Amarna
・ Anonymous type
・ Anonymous veto network
・ Anonymous visitor tracking
・ Anonymous Was a Woman
・ Anonymous web browsing
・ Anonymous work
・ Anonymous-OS


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Anonymous recursion : ウィキペディア英語版
Anonymous recursion
In computer science, anonymous recursion is recursion which does not explicitly call a function by name. This can be done either explicitly, by using a higher-order function – passing in a function as an argument and calling it – or implicitly, via reflection features which allow one to access certain functions depending on the current context, especially "the current function" or sometimes "the calling function of the current function".
In programming practice, anonymous recursion is notably used in JavaScript, which provides reflection facilities to support it. In general programming practice, however, this is considered poor style, and recursion with named functions is suggested instead. Anonymous recursion via explicitly passing functions as arguments is possible in any language that supports functions as arguments, though this is rarely used in practice, as it is longer and less clear than explicitly recursing by name.
In theoretical computer science, anonymous recursion is important, as it shows that one can implement recursion without requiring named functions. This is particularly important for the lambda calculus, which has anonymous unary functions, but is able to compute any recursive function. This anonymous recursion can be produced generically via fixed-point combinators.
==Use==
Anonymous recursion is primarily of use in allowing recursion for anonymous functions, particularly when they form closures or are used as callbacks, to avoid having to bind the name of the function.
Anonymous recursion primarily consists of calling "the current function", which results in direct recursion. Anonymous indirect recursion is possible, such as by calling "the caller (the previous function)", or, more rarely, by going further up the call stack, and this can be chained to produce mutual recursion. The self-reference of "the current function" is a functional equivalent of the "this" keyword in object-oriented programming, allowing one to refer to the current context.
Anonymous recursion can also be used for named functions, rather that calling them by name, say to specify that one is recursing on the current function, or to allow one to rename the function without needing to change the name where it calls itself. However, as a matter of programming style this is generally not done.

抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Anonymous recursion」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.